var last_url;
function load(url, params) {
	last_url = url;
	$('#main-content').load(url, params, function(response,status,xhr) {
		if ("error" == status) {
			response = eval("(" + response + ")");
			alert(response.message);
		}
	})
}

function load_last_url() {
	load(last_url);
}